<?php

use think\facade\Route;

//商城后端路由表
Route::group('admin', function () {

    //教室列表
    Route::get('AdminConfig/roomList', 'AdminConfig/roomList');
    //教室详情
    Route::get('AdminConfig/roomInfo', 'AdminConfig/roomInfo');
    //编辑教室
    Route::post('AdminConfig/roomUpdate', 'AdminConfig/roomUpdate');
    //添加教室
    Route::post('AdminConfig/roomAdd', 'AdminConfig/roomAdd');
    //标签列表
    Route::get('AdminConfig/lableList', 'AdminConfig/lableList');
    //标签详情
    Route::get('AdminConfig/lableInfo', 'AdminConfig/lableInfo');
    //编辑标签
    Route::post('AdminConfig/lableUpdate', 'AdminConfig/lableUpdate');
    //添加标签
    Route::post('AdminConfig/lableAdd', 'AdminConfig/lableAdd');
    //分类列表
    Route::get('AdminConfig/cateList', 'AdminConfig/cateList');
    //添加分类
    Route::post('AdminConfig/cateAdd', 'AdminConfig/cateAdd');
    //分类详情
    Route::get('AdminConfig/cateInfo', 'AdminConfig/cateInfo');
    //编辑分类
    Route::post('AdminConfig/cateUpdate', 'AdminConfig/cateUpdate');
    //门店列表
    Route::post('AdminConfig/storeList', 'AdminConfig/storeList');
    //
    Route::get('AdminConfig/lableSelect', 'AdminConfig/lableSelect');
    //课程列表
    Route::get('AdminList/classList', 'AdminList/classList');
    //添加课程
    Route::post('AdminList/classAdd', 'AdminList/classAdd');
    //编辑课程
    Route::post('AdminList/classUpdate', 'AdminList/classUpdate');
    //课程详情
    Route::get('AdminList/classInfo', 'AdminList/classInfo');
    //教练下拉框
    Route::get('AdminList/coachSelect', 'AdminList/coachSelect');

    Route::get('AdminList/storeStaffList', 'AdminList/storeStaffList');
    //教室下拉框
    Route::get('AdminList/classroomSelect', 'AdminList/classroomSelect');
    //标签下拉框
    Route::get('AdminList/lableSelect', 'AdminList/lableSelect');
    //类型下拉框
    Route::get('AdminList/cateSelect', 'AdminList/cateSelect');
    //后台数据概览
    Route::get('AdminList/index', 'AdminList/index');

    Route::post('AdminList/classStatusUpdate', 'AdminList/classStatusUpdate');
    //课程下拉框（store_id）
    Route::post('AdminList/classSelect', 'AdminList/classSelect');
    //排课列表
    Route::get('AdminList/classDateList', 'AdminList/classDateList');
    //添加课程排课
    Route::post('AdminList/classDateAdd', 'AdminList/classDateAdd');
    //编辑排课
    Route::post('AdminList/classDateUpdate', 'AdminList/classDateUpdate');
    //排课详情
    Route::get('AdminList/classDataInfo', 'AdminList/classDataInfo');
    //场地信息
    Route::get('AdminList/storeInfo', 'AdminList/storeInfo');
    //编辑场地
    Route::post('AdminList/storeUpdate', 'AdminList/storeUpdate');

    Route::get('AdminCard/cardList', 'AdminCard/cardList');

    Route::post('AdminCard/cardAdd', 'AdminCard/cardAdd');

    Route::post('AdminCard/cardUpdate', 'AdminCard/cardUpdate');
    //会员卡停卡（id）
    Route::post('AdminCardUser/stopCard', 'AdminCardUser/stopCard');
    //会员卡退卡（id）
    Route::post('AdminCardUser/returnCard', 'AdminCardUser/returnCard');
    //开卡（id）
    Route::post('AdminCardUser/openCard', 'AdminCardUser/openCard');

    Route::get('AdminCard/cardInfo', 'AdminCard/cardInfo');
    //会员卡修改状态
    Route::post('AdminCard/cardStatusUpdate', 'AdminCard/cardStatusUpdate');
    //会员卡下拉
    Route::post('AdminCard/cardSelect', 'AdminCard/cardSelect');
    //后台会员卡预约记录(card_id，user_id)
    Route::get('AdminCard/cardAppRecord', 'AdminCard/cardAppRecord');
    //查询用户(name)
    Route::get('AdminCardUser/userList', 'AdminCardUser/userList');
    //绑定会员(card_id:会员卡id，user_id:用户id,pay_type:支付方式,pay_price:支付价格,discount:优惠,open_time:开卡时间,adviser:顾问,text:简介)
    Route::post('AdminCardUser/cardUserAdd', 'AdminCardUser/cardUserAdd');

    Route::get('AdminCardUser/cardUserList', 'AdminCardUser/cardUserList');

    Route::post('AdminCardUser/cardUserUpdate', 'AdminCardUser/cardUserUpdate');

    Route::get('AdminCardUser/cardUserInfo', 'AdminCardUser/cardUserInfo');
    //倒入会员卡
    Route::post('AdminCardUser/importUserCard', 'AdminCardUser/importUserCard');
    //续卡（id，price:续费花多少元,value:多少元多少次多少天,end_time:有效期,text：备注）
    Route::post('AdminCardUser/renewCard', 'AdminCardUser/renewCard');


    //下载模版
    Route::get('AdminCardUser/getExcelPath', 'AdminCardUser/getExcelPath');
    //会员卡变更记录(card_id)
    Route::get('AdminCardUser/cardLogList', 'AdminCardUser/cardLogList');
    //会员卡流水记录(card_id)
    Route::get('AdminCardUser/waterList', 'AdminCardUser/waterList');
    //删除卡(id)
    Route::post('AdminCardUser/delCard', 'AdminCardUser/delCard');
    //修改店主的权限（店主店员）(fans_id，is_class 1：店主，0：店员)
    Route::post('AdminList/updateCoachAuth', 'AdminList/updateCoachAuth');
    //修改店主的权限（店主店员）(fans_id，class_status)
    Route::post('AdminList/updateCoachStatus', 'AdminList/updateCoachStatus');
    //删除排课（id）
    Route::post('AdminList/delClassDate', 'AdminList/delClassDate');



});



//商城后端路由表
Route::group('app', function () {

    //课程列表
    Route::get('IndexList/classList', 'IndexList/classList');

    Route::get('IndexList/cateList', 'IndexList/cateList');

    Route::get('IndexList/classDateInfo', 'IndexList/classDateInfo');
    //预约
    Route::post('IndexList/appClassDate', 'IndexList/appClassDate');
    //
    Route::post('IndexList/userRecordList', 'IndexList/userRecordList');

    Route::post('IndexList/sign', 'IndexList/sign');
    //取消预约
    Route::post('IndexList/cancel', 'IndexList/cancel');
    //私教课教师列表
    Route::get('IndexList/privateCoachList', 'IndexList/privateCoachList');
    //含有课的教师列表
    Route::get('IndexList/coachList', 'IndexList/coachList');
    //私教课详情(coach_id)
    Route::get('IndexList/privateClassInfo', 'IndexList/privateClassInfo');
    //会员卡列表（status）
    Route::get('IndexCard/userCardList', 'IndexCard/userCardList');
    //获取可以使用的会员卡(start_time（时间搓 日期+小时）,class_id,)
    Route::get('IndexList/getCanUseCard', 'IndexList/getCanUseCard');
    //预约私教课（class_id,start_time（时间搓 日期+小时）,coach_id,card_id）
    Route::post('IndexList/appPrivateClass', 'IndexList/appPrivateClass');
    //教练详情(coach_id)
    Route::get('IndexList/coachInfo', 'IndexList/coachInfo');
    //教师排课列表(coach_id,cate_id)
    Route::get('IndexList/coachClassList', 'IndexList/coachClassList');
    //前端会员卡预约记录(card_id)
    Route::get('IndexCard/cardAppRecord', 'IndexCard/cardAppRecord');
    //会员卡详情（id）
    Route::get('IndexCard/cardUserInfo', 'IndexCard/cardUserInfo');
    //员工未开课列表
    Route::get('IndexStaff/coachClassNotStart', 'IndexStaff/coachClassNotStart');
    //员工售卡列表
    Route::get('IndexStaff/coachCardList', 'IndexStaff/coachCardList');
    //教师上课统计
    Route::get('IndexStaff/myClassStatistics', 'IndexStaff/myClassStatistics');
    //员工上过课的列表
    Route::get('IndexStaff/myClassList', 'IndexStaff/myClassList');
    //团课教师上课明细
    Route::get('IndexStaff/publicCoachClassInfo', 'IndexStaff/publicCoachClassInfo');
    //私有课教师上课明细
    Route::get('IndexStaff/privateCoachClassInfo', 'IndexStaff/privateCoachClassInfo');

    Route::get('IndexStaff/appClassInfo', 'IndexStaff/appClassInfo');
    //员工取消预约
    Route::post('IndexStaff/cancel', 'IndexStaff/cancel');

    Route::post('IndexStaff/sign', 'IndexStaff/sign');
    //员工预约私交课（class_id,user_id,start_time,card_id）
    Route::post('IndexStaff/appPrivateClass', 'IndexStaff/appPrivateClass');
    //员工帮用户预约
    Route::post('IndexStaff/appClassDate', 'IndexStaff/appClassDate');
    //员工端通过用户获取可用端会员卡(user_id，id:排课的id)
    Route::get('IndexStaff/getCanUseCard', 'IndexStaff/getCanUseCard');
    //搜索用户(name)
    Route::get('IndexStaff/userList', 'IndexStaff/userList');
    //员工端门店统计(whereTime 本周：week,本月：month)
    Route::get('IndexStore/index', 'IndexStore/index');
    //月售卡明细
    Route::get('IndexStore/monthCardInfo', 'IndexStore/monthCardInfo');
    //卡金额明细详情(售卡金额，退款金额)
    Route::get('IndexStore/cardPriceInfo', 'IndexStore/cardPriceInfo');
    //课程月排课分析
    Route::get('IndexStore/monthClassDate', 'IndexStore/monthClassDate');
    //教练月排课分析
    Route::get('IndexStore/coachMonthClassDate', 'IndexStore/coachMonthClassDate');
    //门店售卡列表
    Route::get('IndexStore/saleCardList', 'IndexStore/saleCardList');
    //团课排课列表（cate_id,day(2021-6-8)）
    Route::get('IndexStoreClass/classDateList', 'IndexStoreClass/classDateList');
    //教练列表
    Route::get('IndexStoreClass/coachList', 'IndexStoreClass/coachList');
    //私教课列表
    Route::get('IndexStoreClass/privateCoachClassInfo', 'IndexStoreClass/privateCoachClassInfo');
    //会员卡列表
    Route::get('IndexStoreCard/cardUserList', 'IndexStoreCard/cardUserList');
    //已发放会员卡详情
    Route::get('IndexStoreCard/cardUserInfo', 'IndexStoreCard/cardUserInfo');
    //会员卡预约记录(card_id)
    Route::get('IndexStoreCard/cardAppRecord', 'IndexStoreCard/cardAppRecord');
    //会员卡停卡（id）
    Route::post('IndexStoreCard/stopCard', 'IndexStoreCard/stopCard');
    //会员卡退卡（id）
    Route::post('IndexStoreCard/returnCard', 'IndexStoreCard/returnCard');
    //会员卡删卡（id）
    Route::post('IndexStoreCard/delCard', 'IndexStoreCard/delCard');
    //编辑已经发放会员卡
    Route::post('IndexStoreCard/cardUserUpdate', 'IndexStoreCard/cardUserUpdate');
    //发放会员卡
    Route::post('IndexStoreCard/cardUserAdd', 'IndexStoreCard/cardUserAdd');
    //创建会员卡
    Route::post('IndexStoreCard/cardAdd', 'IndexStoreCard/cardAdd');
    //会员卡详情(id)
    Route::get('IndexStoreCard/cardInfo', 'IndexStoreCard/cardInfo');
    //编辑会员卡
    Route::post('IndexStoreCard/cardUpdate', 'IndexStoreCard/cardUpdate');
    //编辑会员卡状态
    Route::post('IndexStoreCard/cardStatusUpdate', 'IndexStoreCard/cardStatusUpdate');
    //会员卡列表（title,effect）
    Route::get('IndexStoreCard/cardList', 'IndexStoreCard/cardList');
    //开卡（id）
    Route::post('IndexStoreCard/openCard', 'IndexStoreCard/openCard');
    //会员卡变更记录(card_id)
    Route::get('IndexStoreCard/cardLogList', 'IndexStoreCard/cardLogList');
    //会员卡流水记录(card_id)
    Route::get('IndexStoreCard/waterList', 'IndexStoreCard/waterList');
    //续卡
    Route::post('IndexStoreCard/renewCard', 'IndexStoreCard/renewCard');
    //课程列表（cate_id）
    Route::get('IndexStoreClass/classList', 'IndexStoreClass/classList');
    //创建课程
    Route::post('IndexStoreClass/classAdd', 'IndexStoreClass/classAdd');
    //编辑课程
    Route::post('IndexStoreClass/classUpdate', 'IndexStoreClass/classUpdate');
    //课程上下架
    Route::post('IndexStoreClass/classStatusUpdate', 'IndexStoreClass/classStatusUpdate');
    //课程详情
    Route::get('IndexStoreClass/classInfo', 'IndexStoreClass/classInfo');
    //教练列表
    Route::get('IndexStoreClass/coachSelect', 'IndexStoreClass/coachSelect');
    //教师列表
    Route::get('IndexStoreClass/classroomSelect', 'IndexStoreClass/classroomSelect');
    //标签列表
    Route::get('IndexStoreClass/lableSelect', 'IndexStoreClass/lableSelect');
    //分类列表
    Route::get('IndexStoreClass/cateSelect', 'IndexStoreClass/cateSelect');
    //会员卡下拉
    Route::get('IndexStoreClass/cardSelect', 'IndexStoreClass/cardSelect');
    //支持的课程
    Route::get('IndexStoreClass/classSelect', 'IndexStoreClass/classSelect');
    //新增排课
    Route::post('IndexStoreClass/classDateAdd', 'IndexStoreClass/classDateAdd');
    //编辑排课
    Route::post('IndexStoreClass/classDateUpdate', 'IndexStoreClass/classDateUpdate');

    Route::get('IndexStoreClass/classDateInfo', 'IndexStoreClass/classDateInfo');

    Route::get('IndexStoreClass/appClassDateList', 'IndexStoreClass/appClassDateList');

    Route::post('IndexStoreClass/updateCoachAuth', 'IndexStoreClass/updateCoachAuth');

    Route::post('IndexStoreClass/updateCoachStatus', 'IndexStoreClass/updateCoachStatus');



    //用户预约次数排名
    Route::get('IndexStore/userRecordTop', 'IndexStore/userRecordTop');
    //客户管理首页
    Route::get('IndexStore/customerData', 'IndexStore/customerData');
    //储值不足200元的会员
    Route::get('IndexStore/notEnoughValue', 'IndexStore/notEnoughValue');
    //次数不足5次的会员卡
    Route::get('IndexStore/notEnoughTimes', 'IndexStore/notEnoughTimes');
    //即将到期的会员卡
    Route::get('IndexStore/expire', 'IndexStore/expire');
    //会员列表
    Route::get('IndexStore/memberList', 'IndexStore/memberList');
    //月新增会员
    Route::get('IndexStore/monthMemberList', 'IndexStore/monthMemberList');
    //本月生日会员
    Route::get('IndexStore/monthBirthdayMemberList', 'IndexStore/monthBirthdayMemberList');
    //流失会员
    Route::get('IndexStore/lossMemberList', 'IndexStore/lossMemberList');
    //访客
    Route::get('IndexStore/customerList', 'IndexStore/customerList');
    //30天未上课
    Route::get('IndexStore/thirtyNoClass', 'IndexStore/thirtyNoClass');
    //即将开卡
    Route::get('IndexStore/willOpenMemberList', 'IndexStore/willOpenMemberList');
    //会员卡变更记录(card_id)
    Route::get('IndexCard/cardLogList', 'IndexCard/cardLogList');
    //会员卡流水记录(card_id)
    Route::get('IndexCard/waterList', 'IndexCard/waterList');
    //删除排课（id）
    Route::post('IndexStoreClass/delClassDate', 'IndexStoreClass/delClassDate');









});













